//
//  mainGameViewController.h
//  mtrGameProject
//
//  Created by darkcl on 11-2-20.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>

@interface mainGameViewController : UIViewController <UIScrollViewDelegate, UIGestureRecognizerDelegate> {
	IBOutlet UIScrollView *gameScrollView;
	IBOutlet UIView *contentView;
	IBOutlet UIView *mtrView;
	CGRect mtrRect;
	NSTimer *mtrTimer;
	NSMutableArray *shopArray;
	
	IBOutlet UIView *toolsView;
	IBOutlet UIView *statusView;
	IBOutlet UIImageView *timeView;
	IBOutlet UIImageView *timeBackground;
	
	IBOutlet UIButton *toolButton;
	UIView *toolDetailView;
	
	int totalFloor;
	int currentFloor;
	int totalMoney;
	int totalEP;
	int floorFlow;
	int currentMoney;
	
	int currentDate;
	
	CGPoint startingPoint;
	int timeFlow;
	NSTimer *timeIconTimer;
	NSTimer *timerTrain;
	NSTimer *timerBackground;
	UISwipeGestureRecognizer *swipeLeftRecognizer;
}

-(void) updownControl:(int) control;
-(void) zoomButton;
-(IBAction) zoomToLabel;
-(void) timeRotation;
-(void) createContentView:(int) floorNumber;
-(void) showMTR;
-(void) hideMTR;
-(void) changeTimeBackground;

-(void) scrollUP;
-(void) scrollDown;

-(void) buttonControl:(id) sender;
-(void) showToolBar;
-(IBAction) dismissToolBar;
-(void) controlView:(int) forView;
-(void) closeView:(id) sender;

-(void) showStatusView;
-(void) resetStatusView;

-(void) createShopInPoint:(CGPoint) point;
-(void) shopButtonAction:(id) sender;
-(void) updateStatus;
-(void) createShopButton:(CGPoint) point forType:(int) type;
@end
